using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class CategoryInfo
	{
		#region CONSTRUCTORS
		public CategoryInfo()
		{
		
			this.m_categoryID = Util.NULL_INT;
			this.m_categoryName = Util.NULL_STRING;
			this.m_parentID = Util.NULL_INT;
			this.m_description = Util.NULL_STRING;
			this.m_typeID = Util.NULL_INT;
			this.m_location = Util.NULL_STRING;
			this.m_createdDate = Util.NULL_DATETIME;
			this.m_createdBy = Util.NULL_STRING;
			this.m_status = Util.NULL_BYTE;
		}
		public CategoryInfo( int categoryID,  string categoryName,  int parentID,  string description,  int typeID,  string location,  DateTime createdDate,  string createdBy,  byte status)
		{
		
			this.m_categoryID = categoryID;
			this.m_categoryName = categoryName;
			this.m_parentID = parentID;
			this.m_description = description;
			this.m_typeID = typeID;
			this.m_location = location;
			this.m_createdDate = createdDate;
			this.m_createdBy = createdBy;
			this.m_status = status;
		}
		public CategoryInfo( DataRow dRow)
		{
		
			this.m_categoryID = (int) Util.ReplaceDBNullTo(dRow["categoryID"], Util.NULL_INT);
			this.m_categoryName = Util.ReplaceDBNullTo(dRow["categoryName"], Util.NULL_STRING).ToString();
			this.m_parentID = (int) Util.ReplaceDBNullTo(dRow["parentID"], Util.NULL_INT);
			this.m_description = Util.ReplaceDBNullTo(dRow["description"], Util.NULL_STRING).ToString();
			this.m_typeID = (int) Util.ReplaceDBNullTo(dRow["typeID"], Util.NULL_INT);
			this.m_location = Util.ReplaceDBNullTo(dRow["location"], Util.NULL_STRING).ToString();
			this.m_createdDate = (DateTime) Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
			this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
			this.m_status = (byte) Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
		}
		#endregion
		
		#region ATTRIBUTES
		private int m_categoryID;
		private string m_categoryName;
		private int m_parentID;
		private string m_description;
		private int m_typeID;
		private string m_location;
		private DateTime m_createdDate;
		private string m_createdBy;
		private byte m_status;
		#endregion
		
		#region PROPERTIES
		public int CategoryID
		{
			get
			{
				return this.m_categoryID;
			}
			set
			{
				this.m_categoryID = value;
			}
		}
		
		public string CategoryName
		{
			get
			{
				return this.m_categoryName;
			}
			set
			{
				this.m_categoryName = value;
			}
		}
		
		public int ParentID
		{
			get
			{
				return this.m_parentID;
			}
			set
			{
				this.m_parentID = value;
			}
		}
		
		public string Description
		{
			get
			{
				return this.m_description;
			}
			set
			{
				this.m_description = value;
			}
		}
		
		public int TypeID
		{
			get
			{
				return this.m_typeID;
			}
			set
			{
				this.m_typeID = value;
			}
		}
		
		public string Location
		{
			get
			{
				return this.m_location;
			}
			set
			{
				this.m_location = value;
			}
		}
		
		public DateTime CreatedDate
		{
			get
			{
				return this.m_createdDate;
			}
			set
			{
				this.m_createdDate = value;
			}
		}
		
		public string CreatedBy
		{
			get
			{
				return this.m_createdBy;
			}
			set
			{
				this.m_createdBy = value;
			}
		}
		
		public byte Status
		{
			get
			{
				return this.m_status;
			}
			set
			{
				this.m_status = value;
			}
		}
		
		#endregion
		
	}
}